package com.cskaoyan.model.vo.keyword;

import com.cskaoyan.bean.MallKeyword;
import lombok.Data;

import java.util.List;

/**
 * @program: project-market
 * @description: 配置管理
 * @author: shiyue
 * @create: 2021/11/30 20:25
 **/
@Data
public class KeywordVO {
    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<MallKeyword> list;

    public KeywordVO(Integer total, Integer limit, Integer page, List<MallKeyword> list) {
        this.total = total;
        this.limit = limit;
        this.page = page;

        if (total%limit!=0) {
            this.pages = total / limit+1;
        }else {
            this.pages = total / limit;
        }

        this.list = list;

    }



    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getPages() {
        return pages;
    }

    public void setPages(Integer pages) {
        this.pages = pages;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }


}
